{
    "CN": "etcd-pf",
    "key": {
        "algo": "rsa",
        "size": 2048
    },
    "hosts": [  
        "127.0.0.1"
        {% for item in groups['etcd'] %},
        "{{ hostvars[item].inventory_hostname }}"
        {% endfor %}
        {% for item in groups['etcd'] %},
        "{{ hostvars[item].ansible_host }}"
        {% endfor %}      
    ],
    "names": [
        {
            "C": "CN",
            "L": "beijing",
            "O": "etcd",
            "ST": "beijing",
            "OU": "System"
        }
    ]
}